<template>
    <view>商品详情{{goods_id}}</view>
</template>

<script>
export default {
    data () {
        return {
           goods_id:''  //获取商品id
        }
    },
    // 通过onload生命周期获取到从商品列表处传过来的商品id
    onLoad(query){
        // console.log(query)
        this.goods_id = query.id
    }
}
</script>

<style lang="scss" scoped>

</style>

